Release 10.1A: OpenEdge Development:
Progress 4GL Reference


RAW-TRANSFER statement

Copies a record wholesale from a source to a target.

Syntax

RAW-TRANSFER
  {      [ BUFFER ]  buffer     TO  [ FIELD ]   raw-field
     |   [ FIELD ]   raw-field  TO  [ BUFFER ]  buffer
     |   [ BUFFER ]  buffer     TO  [ BUFFER ]  buffer 
  }
  [ NO-ERROR ] 

BUFFER

Specifies a parameter is a buffer.

buffer

A source or target database record.

Note: If the source buffer contains only a partial field list, RAW-TRANSFER fails.

FIELD

Specifies a parameter is a raw-field.

raw-field

A source or target data field of type RAW.

NO-ERROR

Suppresses Progress’s run-time error behavior and stores information on run-time errors, if any, in the ERROR-STATUS system handle.

Example

The following Progress 4GL example performs a RAW-TRANSFER of a newly created Customer record to the Record field of Replication-Log table:

TRIGGER PROCEDURE FOR REPLICATION-CREATE OF Customer.
CREATE Replication-Log.
ASSIGN 
  Replication-Log.Taskid = DBTASKID(LDBNAME(BUFFER Replication-Log))
  Replication-Log.Table = ’Customer’
  Replication-Log.Action = ’CREATE’.
RAW-TRANSFER Customer TO Replication-Log.Record. 

For more information on database replication, see OpenEdge Data Management: Database Administration .

Notes

See also

DISABLE TRIGGERS statement, LDBNAME function, RAW-TRANSFER( ) method, RECORD-LENGTH function


Copyright © 2005 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095